home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
PET
/
E-Education
/
(e)d2.d64
/
firefight.3
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2008-11-26
|
19KB
|
566 lines
10 :REM *** R. PRACHUN (1983) ***
12 :REM *** P.O.BOX 1447 ***
14 :REM *** PORT PERRY, ONT. ***
16 :REM *** L0B 1N0 ***
18 :
22 DATA 169 , 1 , 162 , 4 , 160
24 DATA 255 , 32 , 186 , 255 , 32
26 DATA 192 , 255 , 162 , 1 , 32
28 DATA 201 , 255 , 133 , 2 , 32
30 DATA 231 , 255 , 96 , 0 , 0
31 :
32 POKE 808,225:REM DISABLE STOP/RESTORE KEYS
33 :
34 YY=28:GOSUB10000:DQ=0
36 DL$(1)=" "
38 DL$(2)=" "
40 DL$(3)=" "
42 DL$(4)=" "
44 F$="":WS$=""
46 NA$=" [198]IREFIGHT "
48 MO$(0)=" ":MO$(1)=""
50 E$=" "
52 X1$="":X2$=""
54 X3$="":X4$=""
56 X5$=""
58 D5$=" [215]HAT IS YOUR CHOICE (1-4)? [146]"
60 Y1$=""
62 Y2$=""
64 Y3$=""
66 Y4$=""
68 PRINTCHR$(142):PRINT""
70 GOSUB5220
72 PRINT"[147]"CHR$(14):GOSUB5000
74 GOTO122
76 DIM P1$(3,120):I=0
78 C1=0:C2=0:W=0:R=0:PR=0
80 :
82 FORK=1TO3:I=0:POKE53280,K+3:POKE53281,K+4
84 I=I+1:READ P1$(K,I):IFP1$(K,I)="***"THEN88
86 N1(K)=N1(K)+1:GOTO84
88 NEXT K
90 :
92 FORK=1TO3:POKE53280,K+3:POKE53281,K+4
94 FORJ=1TO8:READQ1$(K,J),Q2$(K,J)
96 READ D1$(K,J),D2$(K,J),D3$(K,J),D4$(K,J),CO(K,J)
98 CV=CV+1:IFCV=2THENYY=158:CV=0
100 IFCV=1THENYY=28
102 GOSUB5350:NEXTJ:PRINT""
104 L(K,1)=INT(8*RND(1)+1)
106 FOR J=2TO5
108 L(K,J)=INT(8*RND(1)+1)
110 FORL=1TOJ-1
112 IFL(K,J)=L(K,L)THENL=J-1:GOTO108
114 NEXTL,J
116 NEXTK
118 RETURN
120 :
122 GOSUB194:F=1:GOSUB5670
124 GOSUB 248
126 IFVQ=2THENVQ=0:GOTO122
128 :
130 F=2
132 PRINT"[147]";NA$:PRINT" [208]ART 2":PRINT""
134 GOSUB 356:GOSUB194
136 GOSUB5670
138 GOSUB248
140 IFVQ=2THENVQ=0:GOTO130
142 F=3:PRINT"[147]";NA$:PRINT" [208]ART 3":PRINT""
144 GOSUB356:GOSUB194:GOSUB5670
146 GOSUB248
148 IFVQ=2THENVQ=0:GOTO142
150 PRINT"[147] [211]UMMARY [210]EPORT ":TQ=R+W
152 PRINT" [211]TUDENT: ";SN$
154 ZZ=W+R:PR=INT((R/ZZ)*100)
156 PRINT" [212]OTAL [206]UMBER OF [209]UESTIONS:";TQ
158 PRINT" [193]NSWERS CORRECT (1ST TRY):";C1
160 PRINT" [193]NSWERS CORRECT (2ND TRY):";C2
162 PRINT" [212]OTAL [201]NCORRECT [209]UESTIONS:";W
164 PRINT" [212]OTAL [209]UESTIONS [195]ORRECT :";R
166 PRINT" =============================="
168 PRINT" [208]ERCENTAGE [195]ORRECT :";PR;" %"
170 GOSUB6570:IFDQ=2THENDQ=0:GOTO170
172 PRINT"[147] [196]O YOU WISH TO SEE THE STORY"
174 PRINT" IN PARAGRAPH FORM (Y/N)?"
176 GETZ$:IFZ$=""THEN176
178 IFZ$="Y"THEN182
180 GOSUB6410:GOTO 8000
182 FORK=1TO3
184 PRINT"[147]";NA$;"":FORI=1TON1(K)
186 PRINT MO$(NX);P1$(K,I)" ";
188 NX=NX+1:IFNX=2THENPRINT:NX=0
190 IFP1$(K,I)=" "THENGOSUB6200
192 NEXTI:NX=0:NEXTK:GOSUB6410:GOTO6240
194 IFQH=1THENRETURN
196 PRINT"[147]";NA$
198 PRINT"[144] [195]HOOSE THE STORY SPEED."
200 PRINT" 1.[146] [198]AST"
202 PRINT" 2.[146] [205]EDIUM"
204 PRINT" 3.[146] [211]LOW"
206 PRINT"[144] [217]OUR CHOICE (1,2,3)?"
208 GETZ$:IFZ$=""THEN208
210 GOSUB5560:CH=VAL(Z$):IFCH<1ORCH>3THEN194
212 IFCH=1THENS=20
214 IFCH=2THENS=50
216 IFCH=3THENS=75
218 GOSUB 220:GOSUB236:RETURN
220 PRINT"[147] [212]O CHANGE THE STORY SPEED, PRESS"
222 PRINT" AND [200][207][204][196] THE FOLLOWING KEYS;"
224 PRINT" [212]HE [144] [198]1 [146] KEY = [198][193][211][212][197][210]"
226 PRINT" [212]HE [144] [198]7 [146] KEY = [211][204][207][215][197][210]"
228 PRINT" [208]RESS THE [210][197][212][213][210][206] KEY TO START."
230 GETZ1$:IFZ1$=""THEN230
232 IFZ1$<>CHR$(13)THEN230
234 GOSUB5560:RETURN
236 PRINT"[147]":X=1305:Y=1465:XC=55576:YC=55736
238 PRINT""
240 PRINT" [198]1 [146] = [198]ASTER [198]7 [146] = [211]LOWER"
242 FORDY=1TO500:NEXTDY
244 FOR J=1TO 39
246 POKEX,42:POKEXC,7:POKEYC,7:XC=XC+1:YC=YC+1:POKEY,42:X=X+1:Y=Y+1:NEXTJ:RETURN
248 POKE53280,6:POKE53281,12:PRINT"[147]";NA$:PRINT:POKE198,0
250 PRINT" ";SN$;", WOULD YOU LIKE TO"
252 PRINT" READ THIS PART OF THE STORY AGAIN "
254 PRINT" BEFORE ANSWERING THE QUESTIONS "
256 PRINT" THAT FOLLOW (Y/N)?"
258 GETZ$:IFZ$=""THEN258
260 GOSUB5560
262 IFZ$="Y"ANDF=1THEN122
264 IFZ$="Y"ANDF=2THEN124
266 IFZ$="Y"ANDF=3THEN142
268 IFZ$<>"N"THEN248
270 PRINT"[147]"NA$
272 PRINT" [208]LEASE ANSWER THE FOLLOWING QUESTIONS"
274 PRINT" BY TYPING IN THE NUMBER THAT MATCHES"
276 PRINT" THE CORRECT ANSWER."
278 GOSUB 356:TM=0
280 FOR J=1TO5
282 PRINT"[147] [209][213][197][211][212][201][207][206] #[146] ";J
284 PRINT"[158] **************************************"
286 PRINT" ";Q1$(F,L(F,J)):PRINT" ";Q2$(F,L(F,J))
288 PRINT"[158] **************************************"
290 GOSUB382
292 GETZ$:IFZ$=""THEN292
294 QC=VAL(Z$):IFQC<1ORQC>4THEN292
296 GOSUB370
298 FORV=1TO4
300 IFV=QCTHEN304
302 PRINTDL$(V)
304 NEXTV
306 IFQC=CO(F,L(F,J))THEN348
308 PRINTY1$;" [211]ORRY, THAT IS INCORRECT."
310 PRINTY2$;" [212]RY AGAIN!"
312 GOSUB382
314 GETZ1$:IFZ1$=""THEN314
316 QS=VAL(Z1$):IFQS<1ORQS>4THEN314
318 IFQS=CO(F,L(F,J))THEN336
320 FORV=1TO4
322 IFV=CO(F,L(F,J))THEN326
324 PRINTDL$(V)
326 NEXTV
328 PRINTY3$;" [206]O, THE ANSWER IS NUMBER ";CO(F,L(F,J)):W=W+1
330 TM=TM+1:IFTM=3THENJ=5:GOSUB6300:W=W-1:RETURN
332 :
334 GOSUB 356:GOTO354
336 FORV=1TO4
338 IFV=QSTHEN342
340 PRINTDL$(V)
342 NEXTV:GOSUB370
344 PRINTY3$;" [206]OW YOU HAVE IT! [199]OOD WORK!":C2=C2+1
346 GOSUB364:R=R+1:GOSUB356:GOTO354
348 GOSUB402:PRINTY2$;CG$:R=R+1:C1=C1+1
350 GOSUB364
352 GOSUB356
354 NEXTJ:RETURN
356 PRINT:PRINT" [208]RESS THE [146] [210][197][212][213][210][206] KEY TO CONTINUE "
358 GETQ$:IFQ$=""THEN358
360 IFQ$<>CHR$(13)THEN358
362 GOSUB5560:RETURN
364 FORSX=1TO10:POKE53280,SX:POKE53281,SX+1:FORDY=1TO25:NEXTDY:NEXTSX
366 POKE53280,6:POKE53281,12
368 RETURN
370 PRINTY1$" "
372 PRINTY2$" "
374 PRINTY3$" "
376 PRINTY4$" "
378 PRINTX5$" "
380 RETURN
382 REM
384 PRINTX1$;" 1.[146] ";D1$(F,L(F,J))
386 PRINTX2$;" 2.[146] ";D2$(F,L(F,J))
388 PRINTX3$;" 3.[146] ";D3$(F,L(F,J))
390 PRINTX4$;" 4.[146] ";D4$(F,L(F,J))
392 PRINTX5$;" ";D5$
394 RETURN
396 :
398 REM **** DATA FOR STORY ****
400 :
402 WS=INT(RND(1)*5+1)
404 ONWSGOSUB408,410,412,414,416
406 RETURN
408 CG$=" [195][160][207][160][210][160][210][160][197][160][195][160][212] ! ":RETURN
410 CG$=" [198][160][193][160][206][160][212][160][193][160][211][160][212][160][201][160][195] ! ":RETURN
412 CG$=" [211][160][213][160][208][160][197][160][210] [215][160][207][160][210][160][203]! ":RETURN
414 CG$=" [201][160][206][160][195][160][210] [197][160][196][160][201] [194][160][204][160][197] ! ":RETURN
416 CG$=" [211] [212][160][213][160][208][160][197][160][206][160][196][160][207][160][213] [211] ! ":RETURN
2000 DATA" [206]O ONE","SET OUT","DELIBERATELY","TO MAKE","THAT [211]ATURDAY"
2005 DATA"EXCITING.","[204]IKE","MANY WEEKENDS","IN [193]UGUST,","WE'D VENTURED"
2010 DATA"FROM HOME","AND SCREAMING"," MOTHERS","TO SEEK FORTUNE","AND FAME"
2015 DATA"AMONGST","THE DRIFT WOOD","AND PIRATES","ON [204]AKE [211]UPERIOR'S"
2020 DATA"SHORE."," "," [212]HE MORNING","PROMISED","A GREAT DAY.","[215]E HAD"
2025 DATA"DISCOVERED SOME","EXCELLENT FLOTSAM","FOR BUILDING","A RAFT."
2026 DATA"[205]OST OF","THE MORNING","WAS SPENT","CONSTRUCTING"
2027 DATA"A FLOATING","GARBAGE PILE!"," "
2030 DATA" [193]S USUAL,","THE RAFT WAS","LESS THAN","SEAWORTHY.","[201]NFACT,"
2035 DATA"IT WAS","DOWNRIGHT","EMBARRASSING.","[201]T WAS","CHRISTENED,","SAILED,"
2040 DATA"AND SUNK,","ALL","IN THE SPACE","OF THREE MINUTES!","[200]OWEVER,"
2045 DATA"WHAT WE LACKED","IN SKILL,","WE MORE THAN","MADE UP FOR"
2050 DATA"WITH ENTHUSIASM."," "," [193]FTER WE","HAD WOLFED","OUR LUNCHES"
2055 DATA"AND SACRIFICED","A DOZEN","DEAD FISH","IN THE CAMPFIRE,"
2060 DATA"WE DECIDED","TO BUILD","A FORTRESS","HIGH UPON","THE BLUFF WALL."
2065 DATA"[212]HE FIELDS","ABOVE THESE BLUFFS","WERE USED","BY THE MAYOR"
2070 DATA"AS FARMLAND.","[212]HE FORTRESS","CONSTRUCTION","WAS THE BEGINNING"
2075 DATA"OF THE END!"," ","***"
2080 DATA" [194]Y MID-AFTERNOON","THE FORTRESS","WAS COMPLETE.","[194]ARRING ANY"
2085 DATA"MAJOR CATASTROPHE,","SUCH AS","A PUFF OF WIND","OR DROP","OF RAIN,"
2090 DATA"THE STRUCTURE","WAS INDESTRUCTIBLE.","[213]NFORTUNATELY,"
2095 DATA"ONCE YOU OPENED","YOUR EYES,","IT WAS PLAIN","TO SEE"
2100 DATA"THAT OUR CREATION","WAS JUST SHORT","OF ANOTHER","DISASTER!"," "
2105 DATA" [201]T WAS FORMED","PRIMARILY","OF SOME OLD,","WATER-SOAKED, PLANKS"
2110 DATA"WASHED UP","BY THE WAVES.","[212]HESE WERE","PERCHED CARELESSLY"
2115 DATA"JUST BELOW","THE TOP EDGE","OF THE BLUFF.","[215]E HAD USED","THE TALL"
2120 DATA"DRIED GRASS","FROM THE FIELD","AS A ROOF","AGAINST","THE ELEMENTS."
2125 DATA"[212]HE ROOF"
2130 DATA"WAS NOT","OF MUCH USE","CONSIDERING","THERE WAS","MORE SKY"
2135 DATA"THAN ROOF."," "," [203]ELLY","WAS THE ONLY","BRAVE BUCANEER"
2140 DATA"TO VENTURE","INTO THE STRONGHOLD.","[206]OW, TO BE","COMPLETELY HONEST,"
2145 DATA"[203]ELLY'S BRAINS","WERE NOT","ALL THERE!"
2150 DATA"[212]HE REST OF US","DECLINED","HIS INVITATION","TO JOIN HIM,"
2155 DATA"AFTER WE WATCHED","THE FLOOR SWAY","LIKE JELLO,","UNDER [203]ELLY'S"
2160 DATA"WEIGHT."," "," [201]T WAS","AT THIS POINT,","THAT [208]AUL","SUGGESTED"
2165 DATA"WE BURN","THE FORT","TO HELP EASE","THE PAIN","OF OUR"
2170 DATA"INJURED PRIDE."," ","***"
2175 DATA" [193]T FIRST,","EVERYTHING","WAS UNDER","CONTROL.","[193] SUDDEN GUST"
2180 DATA"OF WIND","HOWEVER,","SOON CHANGED","ALL THAT.","[212]HE MAYOR'S FIELD"
2185 DATA"WAS ABLAZE!"," ","[207]UR EXCITEMENT","WAS SOON LOST","IN PANIC"
2190 DATA"WITH","THE REALIZATION","THAT THE GRASSFIRE","WAS OUT","OF CONTROL!"
2195 DATA" "," [215]E THRASHED","DESPERATELY","AT THE LEAPING","FLAMES","WITH OUR"
2200 DATA"DAMPENED JACKETS.","[215]E WORKED","FURIOUSLY","IN THE CHOKING"
2205 DATA"THICK SMOKE","AND BLISTERING HEAT."," "," [193] SHORT ETERNITY","LATER,"
2210 DATA"WE'D MANAGED","TO CONTAIN","THE FIRE","TO THE EDGE","OF THE BLUFFS"
2215 DATA"WHERE THE GRASS","WAS LONGEST.","[215]E COULD","DIRECT IT,","BUT"
2220 DATA"WE COULDN'T","STOP IT!"," "," [201]N DESPERATION,","WE TRIED"
2225 DATA"WETTING DOWN","THE GRASS,","BUT THE HEAT","WAS TOO INTENSE."
2230 DATA"[193]LL OUR EFFORTS","SEEMED IN VAIN!","[200]OURS","HAD PASSED"
2235 DATA"AND FATIGUE","WAS GAINING!"," "," [215]E DECIDED","TO RISK","IT ALL"
2240 DATA"IN ONE","LAST EFFORT.","[193]HEAD OF","THE ONCOMING FLAMES","WE MADE"
2245 DATA"OUR STAND.","[215]E DAMPENED","THE FLATTENED","GRASS","AND BUILT"
2250 DATA"A NARROW WALL","OF SAND.","[215]HAT A SIGHT","WE MADE!"
2255 DATA"[194]LACKENED FACES","STREAKED","WITH SWEAT;"
2260 DATA"CLUTCHING","TATTERED","AND BURNED SHREDS","OF OUR JACKETS."," "
2265 DATA" [212]HE FLAMES","ROARED ONWARD,","BUT FATE","SMILED ON US."
2270 DATA"[193]S THE FLAMES","REACHED","THE DEFENSES,","THE WIND DIED."
2275 DATA"[215]E BEAT","THE FLAMES","MERCILESSLY!","[201]N SECONDS,","THE FIRE"
2280 DATA"WAS OUT."," "," [215]E HAD WON!","[217]ET,","NOT ONE","HOOP OF JOY"
2285 DATA"WAS HEARD.","[215]E DRAGGED","OUR TIRED BODIES","AND CHARRED"
2290 DATA"JACKETS","FROM THE","HOLLOW VICTORY.","[215]E'D HAD","ENOUGH EXCITEMENT"
2295 DATA"FOR ONE DAY."," ","***"
2300 DATA"[207]N WHICH DAY DOES THE ACTION","TAKE PLACE?","[211]UNDAY","[211]ATURDAY"
2305 DATA"[215]EDNESDAY","[205]ONDAY",2
2310 DATA"[201]N WHAT SEASON DOES THE ACTION","TAKE PLACE?","[211]UMMER","[198]ALL"
2315 DATA"[215]INTER","[211]PRING",1
2320 DATA"[215]HERE DOES THE STORY TAKE","PLACE?","[204]AKE [207]NTARIO","[204]AKE [205]ICHIGAN"
2325 DATA"[208]ACIFIC [207]CEAN","[204]AKE [211]UPERIOR",4
2330 DATA"[215]HY DID THE MORNING PROMISE","A GOOD DAY?","[212]HE SKY WAS BLUE"
2335 DATA"[201]T WAS WARM AND BREEZY","[212]HERE WAS GOOD SHORE DEBRIS"
2340 DATA"[212]HE WAVES WERE LARGE",3
2345 DATA"[215]HAT IS THE MEANING OF THE","WORD 'FLOTSAM'?","A SMALL BOAT"
2350 DATA"A TYPE OF RAFT","DEBRIS WASHED ASHORE","OLD ROPE FROM A SHIP",3
2355 DATA"[215]HY WAS THE RAFT EMBARRASSING?"," ","[201]T SANK INSTANTLY"
2360 DATA"[201]T WAS POORLY MADE","[201]T SAILED SLOWLY","[201]T WAS TOO SMALL",2
2365 DATA"[215]HAT IS A 'BLUFF'?"," ","A LIE","A SMALL HILL","A MOUNTAIN"
2370 DATA"A SMALL CLIFF",4,"[215]HAT WERE THE FIELDS ABOVE THE","BLUFF, USED FOR?"
2375 DATA"FOR GARDENS","FARM FIELDS","CONSERVATION LAND","NOTHING AT ALL",2
2380 DATA"[215]HO OWNED THE FIELDS ABOVE","THE BLUFFS?","THE MAYOR"
2385 DATA"THE CHIEF OF POLICE","A TEACHER","THE TOWN'S BANKER",1
2390 DATA"[215]HICH STATEMENT BELOW IS TRUE?"," ","[212]HE STORY HAPPENS ON A WEEKEND"
2395 DATA"[212]HE STORY BEGINS IN THE MORNING","[212]HE RAFT SANK IN THREE MINUTES"
2400 DATA"ALL OF THESE",4
2405 DATA"[212]HE FORTRESS WAS..."," ","INDESTRUCTIBLE","WELL MADE","A DISASTER"
2410 DATA"NONE OF THESE",3
2415 DATA"[215]HY DOES THE AUTHOR CALL A PUFF","OF WIND A CATASTROPHE?"
2420 DATA"[200]E IS MAKING FUN OF THE FORT","[212]HE WIND WAS VERY STRONG"
2425 DATA"[212]HE WIND WAS UNSTABLE","[212]HE FORT WAS NOT FINISHED",1
2430 DATA"[215]HY WAS THE ROOF NOT OF MUCH","USE AGAINST THE ELEMENTS?"
2435 DATA"[201]T LEAKED","[201]T WAS FLAT","[212]HERE WAS NOT MUCH OF IT"
2440 DATA"[201]T WAS MADE OF GRASS",3
2445 DATA"[215]HY DID [203]ELLY GO INTO THE","FORT?","[200]E WAS BRAVE","[200]E WAS COLD"
2450 DATA"[200]E WANTED TO PROVE HIMSELF","[200]E WAS CRAZY",4
2455 DATA"[212]HE FORT WAS COMPLETED BY..."," ","LATE AFTERNOON","EARLY AFTERNOON"
2460 DATA"NOON TIME","MID-AFTERNOON",4
2465 DATA"[215]HERE HAD THE FORT BEEN","BUILT?","AT THE BOTTOM OF THE BLUFF"
2470 DATA"ON THE SHORE","ON THE FIELD ABOVE THE BLUFF"
2475 DATA"NEAR THE TOP OF THE BLUFF",4
2480 DATA"[215]HAT WAS THE ROOF OF THE FORT","MADE OF?","LEAVES","STICKS","GRASS"
2485 DATA"BOARDS",3,"[215]HY DIDN'T ANYONE WANT TO JOIN","[203]ELLY, IN THE FORT?"
2490 DATA"[206]O ONE LIKED HIM","[212]HE FORT WAS UNSAFE","[212]HEY WERE TOO TIRED"
2495 DATA"[212]HEY WERE GOING TO BURN IT",2
2500 DATA"[200]OW WOULD BURNING THE FORT HELP","THEIR INJURED PRIDE?"
2505 DATA"[212]HEY WOULD GET REVENGE","[212]HEY WOULD HAVE FUN"
2510 DATA"[212]HE FORT WAS A DISASTER","[212]HEY LOVED FIRES",1
2515 DATA"[215]HY WAS THE BOY'S PRIDE INJURED?"," ","[212]HE FORT WAS UNSAFE"
2520 DATA"[207]NLY [203]ELLY DARED ENTER THE FORT","[212]HE FORT WAS POORLY MADE"
2525 DATA"NONE OF THESE",3
2530 DATA"[215]HAT CAUSED THE FIRE TO GET","OUT OF CONTROL?","TALL GRASS"
2535 DATA"THE WIND","CARELESSNESS","THE DRYNESS OF THE GRASS",2
2540 DATA"[215]HAT DID THE BOYS USE TO TRY","AND PUT OUT THE FIRE?"
2545 DATA"ONLY SAND","ONLY WATER","THEIR JACKETS","FIRE EXTINQUISHERS",3
2550 DATA"[215]HY COULD THEY NOT PUT OUT THE","FIRE AT THE CLIFF'S EDGE?"
2555 DATA"[212]HE WIND WAS TOO STRONG","[212]HEY WERE TOO TIRED"
2560 DATA"[212]HE GRASS WAS TOO TALL","[212]HE FIRE WAS TOO HOT",3
2565 DATA"[215]HY DIDN'T DAMPENING THE GRASS","WITH WATER STOP THE FIRE?"
2570 DATA"[212]HE WATER RAN AWAY","[212]HE WIND DRIED UP THE WATER"
2575 DATA"[212]HE GROUND SOAKED IT UP","[212]HE FIRE'S HEAT DRIED IT UP",4
2580 DATA"[215]HICH HAPPENED FIRST?"," ","[212]HEIR FACES WERE BLACK"
2585 DATA"[198]IRE BURNED ONLY AT THE EDGE","[212]HE WIND DIED"
2590 DATA"[212]HEY BUILT A SAND WALL",2
2595 DATA"[215]HAT DOES THE PHRASE 'A","HOLLOW VICTORY' MEAN?"
2600 DATA"[212]HEY'D LOST","[212]HEY WERE TOO TIRED TO CARE"
2605 DATA"[212]HE VICTORY WAS NOT SATISFYING","NONE OF THESE",3
2610 DATA"[215]HAT DOES THE PHRASE ' FATE","SMILED ON US ' MEAN?"
2615 DATA"[212]HEY WERE LUCKY","[201]T WOULD BE EASY","[212]HEY HAD A GOOD TIME"
2620 DATA"[212]HEY WOULD WIN THE BATTLE",1
2625 DATA"[215]HAT DO YOU THINK THE BOY'S","WOULD HAVE DONE IF THEY'D FAILED?"
2630 DATA"RUN HOME","CRY","RUN FOR HELP","IGNORE THE FIRE",3
2635 DATA"[215]HY DID THE BOY'S FEEL THEY","COULD MAKE ONLY ONE LAST EFFORT?"
2640 DATA"[201]T WAS GETTING LATE","[212]HE FIRE WAS GETTING TO BIG"
2645 DATA"[212]HEY WERE GETTING TIRED","ALL OF THE ABOVE",3
2650 DATA"[215]HICH STATEMENT IS FALSE?"," ","[212]HEIR JACKETS WERE WET"
2655 DATA"[212]HE WIND DIED","[212]HE SAND WALL WORKED WELL"
2660 DATA"[212]HEIR JACKETS WERE RUINED",3
4997 :
4998 REM **** END OF STORY DATA ****
4999 :
5000 POKE53280,5:POKE53281,12:GOSUB6870
5007 PRINT"[147]";NA$
5010 PRINT" [200]ELLO, ";SN$;"."
5020 PRINT" [208]LEASE READ THE STORY AND"
5030 PRINT" ANSWER THE QUESTIONS THAT"
5040 PRINT" FOLLOW."
5050 PRINT" [217]OU MAY HAVE THE STORY PRINTED"
5060 PRINT" OUT IN TWO DIFFERENT WAYS."
5070 PRINT" 1) [193] PARAGRAPH [146] AT A TIME."
5080 PRINT" 2) [193] PHRASE [146] AT A TIME."
5090 PRINT" [201]N OPTION NUMBER TWO YOU "
5100 PRINT" WILL BE ABLE TO CONTROL THE "
5110 PRINT" SPEED OF THE PHRASES AS THEY"
5120 PRINT" FLASH ON THE SCREEN."
5130 PRINT" [215]HICH [207][208][212][201][207][206] WOULD YOU LIKE (1 OR 2)?"
5140 GETX$:IFX$=""THEN5140
5150 QH=VAL(X$):IFQH<1ORQH>2THEN5140
5160 RETURN
5170 GETZ$:IFZ$=""THEN5170
5180 IFZ$<>CHR$(13)THEN5170
5190 GOSUB5560
5210 RETURN
5220 PRINT"[147]":POKE53280,6:POKE53281,12
5230 GOSUB5340:GOTO5240
5240 AS=2006:AD=-39
5250 PRINTWS$;" ONE MOMENT, PLEASE! "
5260 GOSUB76:RETURN
5270 FORD=1TO100:NEXTD:RETURN
5280 RETURN
5290 RETURN
5300 RETURN
5310 :
5320 REM *** GRAPHIC OPENING ***
5330 :
5340 POKE53281,12:POKE53280,7
5350 PRINT" R. PRACHUN (1983) "
5352 :
5353 REM *** OPENING GRAPHIC START ***
5354 PRINT:PRINT
5360 PRINTCHR$(YY)" [165]
5362 [153]" FN (null)
5364 PRINT" [206][165] [206] [206] [205]
5366 [153]" (null)(null) THEN FN THEN(null) (null)
5368 PRINT" [167] [205][205] [206] [205] [206][205] [206][165] [206] [165]
5370 [153]" (null) (null)(null) (null)(null) FN(null) (null)(null) (null) (null) (null)(null)
5372 PRINT" [165] [206] [205][180][165][205][205][206] [165] [165][205] [165][165][205][206] [206]
5374 [153]" (null) (null)(null)(null) (null)(null)(null)(null)(null) THEN(null)(null) (null)(null) (null)
5376 PRINT" [206][205][205] [205][205][205] [205][205] [167] [165][167] [165] [206][206] [206]
5378 [153]" (null)(null)TAB((null) (null)(null) (null)(null) (null)(null) (null)(null)(null)(null)(null)(null) (null)(null)
5380 PRINT" [206][206] [206][206] [206] [205][205] [205] [205] [205][205] [205] [205][205]
5382 [153]"STOP FREFREFREFREFREFREFREFREFREFREFREFREFREFREFREFREFREFREFREFREFREFREFREFRE
5384 PRINT" F I R E F I G H T
5386 [153]"
5388 PRINT"[144] [184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184]
5390 [153]"
5392 RETURN
5555 REM *** END OF OPENING GRAPHIC ***
5560 SM=54272:FORL=0TO24:POKESM+L,0:NEXT
5570 POKESM+1,45 :POKESM+5,10
5580 POKESM+15,30:POKESM+24,6:POKESM+4,21
5590 FORTT=1TO150:NEXT
5600 POKESM+4,20:POKESM+24,0
5610 RETURN
5640 :
5650 REM *** PRINTOUT ROUTINE ***
5660 :
5670 IFQH=1THEN6050
5680 POKE53280,0:POKE53281,11
5690 FORI=1TON1(F)
5700 SH=PEEK(203):IFSH=4THENS=S-5
5710 IFSH=3THENS=S+5
5720 IFS<10THENS=10
5730 IFS>60THENS=60
5740 SH=64
5750 PRINT" [211][208][197][197][196] [146] =";S
5760 PRINTE$:PRINTF$;
5770 PRINT" ";(P1$(F,I))
5780 FOR J=1TOS*10:NEXTJ
5790 NEXT I:RETURN
5800 :
6040 :
6050 PRINT"[147]";NA$;"":FORI=1TON1(F)
6060 PRINT MO$(NX);P1$(F,I)" ";
6070 NX=NX+1:IFNX=2THENPRINT:NX=0
6080 IFP1$(F,I)=" "THENGOSUB6200
6090 NEXTI:NX=0:RETURN
6100 STOP:PRINT"[147]";NA$;"":FORI=1TON2
6110 PRINT P1$(F,I);" ";
6120 NX=NX+1:IFNX=2THENPRINT:NX=0
6130 IFP1$(F,I)=" "THENGOSUB6200
6140 NEXTI:NX=0:RETURN
6150 PRINT"[147]";NA$;"":FORI=1TON3
6160 PRINT P1$(F,I);" ";
6170 NX=NX+1:IFNX=2THENPRINT:NX=0
6180 IFP3$(F,I)=" "THENGOSUB6200
6190 NEXTI:NX=0:RETURN
6200 PRINT" [208]RESS THE [146] [210]ETURN [203]EY TO [195]ONTINUE "
6210 GETZ$:IFZ$=""THEN6210
6220 IFZ$<>CHR$(13)THEN6210
6230 PRINT"[147]";NA$;"":NX=0:RETURN
6235 :
6300 REM
6310 PRINT"[147] [217]OU APPEAR TO BE HAVING SOME "
6320 PRINT" TROUBLE WITH THESE QUESTIONS."
6330 PRINT" [212]RY READING THIS PART OF THE"
6340 PRINT" STORY AGAIN. [201] WILL GIVE YOU "
6350 PRINT" ANOTHER SET OF QUESTIONS WHEN"
6360 PRINT" YOU HAVE FINISHED."
6370 PRINT" [208]RESS THE [146] [210][197][212][213][210][206] KEY TO CONTINUE "
6380 GETX$:IFX$=""THEN6380
6390 IFX$<>CHR$(13)THEN6380
6400 TM=0:VQ=2:RETURN
6410 PRINT"[147] [196]O YOU WISH TO HAVE THE STORY"
6420 PRINT" PRINTED OUT TO A PRINTER (Y/N)?"
6430 GETZ$:IFZ$=""THEN6430
6440 IFZ$="Y"THENGOSUB10500:GOTO6470
6450 IFZ$<>"N"THEN6430
6460 RETURN
6470 IFDQ=2THENDQ=0:GOSUB9700:GOTO6410
6475 PRINT"[147] [201]NSERT PAPER AND [212]URN ON [208]RINTER! ":GOSUB356
6480 OPEN4,4
6490 FORK=1TO3
6500 PRINT#4,"";NA$
6510 FOR I=1TO N1(K)
6520 PRINT#4,"";MO$(NX);P1$(K,I)" ";
6530 NX=NX+1:IFNX=4THENPRINT#4:NX=0
6540 IFP1$(K,I)=" "THENPRINT#4:NX=0
6550 NEXTI:NX=0:NEXTK:CLOSE4
6560 RETURN
6570 PRINT" [215]OULD YOU LIKE THE [210]EPORT TO BE"
6580 PRINT" PRINTED ON A PRINTER (Y/N)?"
6590 GETX$:IFX$=""THEN6590
6600 IFX$="Y"THEN6630
6610 IFX$<>"N"THEN6590
6620 RETURN
6630 GOSUB6850:IFDQ=2THENGOSUB9700:RETURN
6635 PRINT" [208]RINTING OUT [210]EPORT FOR [146] ";SN$
6640 TQ=W+R
6650 OPEN4,4
6660 PRINT#4,"";NA$
6670 PRINT#4
6680 PRINT#4," ==================================="
6690 PRINT#4," [211]TUDENT: ";SN$
6700 PRINT#4," ==================================="
6710 PRINT#4," [211]TORY [210]EPORT"
6720 PRINT#4," ------------"
6730 PRINT#4," [212]OTAL [206]UMBER OF [209]UESTIONS: ";TQ
6740 PRINT#4
6750 PRINT#4," [193]NSWERS [195]ORRECT (1ST TRY): ";C1
6760 PRINT#4
6770 PRINT#4," [193]NSWERS [195]ORRECT (2ND TRY): ";C2
6780 PRINT#4
6790 PRINT#4," [212]OTAL [201]NCORRECT [209]UESTIONS: ";W
6800 PRINT#4
6810 PRINT#4," [212]OTAL [209]UESTIONS [195]ORRECT : ";R
6820 PRINT#4," ----------------------------------"
6830 PRINT#4," [208]ERCENTAGE [195]ORRECT : ";PR;" %"
6840 CLOSE4:GOSUB356:RETURN
6850 SYS(828):IFPEEK(2)=5THENDQ=2:RETURN
6858 PRINT"[147] [201]NSERT PAPER AND TURN ON THE PRINTER "
6860 GOSUB356:PRINT"[147]":RETURN
6862 :
6870 PRINTCHR$(142):PRINT"[147]"
6880 VB$="":IU=14:JQ=0
6900 PRINT" PLEASE TYPE IN YOUR FIRST "
6910 PRINT" NAME:>[146] ":PRINT
6920 ZZ$="":POKE204,1:PRINTVB$
6930 GETZA$:IFZA$=""THEN6930
6940 IFASC(ZA$)=13THENSN$=ZZ$:GOTO7000
6950 IFASC(ZA$)=20THENGOTO6980
6955 IFASC(ZA$)<65ORASC(ZA$)>90THEN6930
6957 JQ=JQ+1:IFJQ=16THENZZ$="":GOTO6870
6960 ZZ$=ZZ$+ZA$:IU=IU+1
6970 PRINT"";TAB(IU);ZA$;:GOTO6930
6980 IFIU=14THENGOTO6930
6990 JQ=JQ-1:ZZ$=LEFT$(ZZ$,LEN(ZZ$)-1):IU=IU-1:GOTO6970
7000 IFSN$=""THEN6870
7010 FL=ASC(LEFT$(ZZ$,1)):FL=FL+128
7020 SN$=MID$(ZZ$,2,(LEN(ZZ$)-1))
7030 ZZ$=CHR$(FL)+SN$:SN$=ZZ$
7040 PRINTCHR$(14):RETURN
8000 PRINT"[147] [215]OULD YOU OR ANYONE ELSE LIKE "
8010 PRINT" TO READ THIS STORY NOW (Y/N)?"
8020 GETZ$:IFZ$=""THEN8020
8025 IFZ$="Y"THENRUN
8030 IFZ$<>"N"THEN8020
8040 :
8041 PRINT" [215]OULD YOU LIKE ANOTHER STORY"
8042 PRINT" PERHAPS (Y/N)?"
8050 GETX$:IFX$=""THEN8050
8060 IFX$="Y"THENGOSUB9500:GOTO9000
8070 IFX$<>"N"THEN8050
8100 SYS64738
8200 :END:
9000 IFDQ=2THENDQ=0:POKE831,4:GOSUB9700:GOTO8040
9005 PRINT"[144][147] [204]OADING: [205]AIN [205]ENU 64 "
9010 POKE53281,1:POKE53280,6
9020 REM *** BOOT SAMPLE ***
9030 :
9040 :
9050 REM *** FIRST PROGRAM BOOTED ***
9060 :
9070 PRINT"LOAD"CHR$(34)"MAIN MENU 64";CHR$(34)",8"
9080 :
9090 :
9100 PRINT"RUN"
9110 :
9120 REM *** SET-UP KEYBOARD BUFFER ***
9130 :
9140 PRINT"":FORJ=0TO4:POKE631+J,13:NEXTJ:POKE198,5
9150 END
9500 POKE831,8:GOSUB10500:IFDQ=2THENRETURN
9505 PRINT"[147] [201]NSERT THE [193]DVENTURE [211]ERIES DISK"
9510 PRINT" INTO THE DISK DRIVE."
9520 GOSUB356:RETURN
9700 PRINT"[147] [207]PPS! [212]HE DEVICE IS NOT READY! "
9710 GOSUB356:RETURN
10000 FORK=0TO24
10010 READ ZZ:POKE828+K,ZZ
10020 NEXT K:RETURN
10500 SYS(828):IFPEEK(2)=5THENDQ=2
10510 RETURN